import request from '@/utils/request'

export function studentList(query) {
    return request({
        url:'/student/list',
        method:'post',
        params:{
            name:query.name,
            stuId:query.stuId,
            page:query.page,
            size:query.size
        }
    })
}

export function addStudent(query) {
    return request({
        url:'/student/add',
        method:'post',
        data:query
    })
}

export function updateStudent(query){
    return request({
        url:'/student/update',
        method:'post',
        data:query
    })
}

export function getStudentById(id){
    return request({
        url:'/student/detail/'+id,
        method:'post'
    })
}